package xyz.weizhi.tanhua.dubbo.api;

import xyz.weizhi.tanhua.model.mongo.Movement;
import xyz.weizhi.tanhua.model.vo.PageResult;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author milian
 * @Date 2021/10/25 0025 20:31
 */
public interface MovementApi {
    void pubulish(Movement movement);

    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    PageResult findByfriendId(Long userId,Integer page, Integer pagesize);

    List<Movement> findByPids(List<Long> idsList);

    List<Movement> randomMovements(Integer pagesize);

    Movement findByid(String movementId);
}
